<html>
<head>

<style type="text/css">
a.test {
	font-weight: bold;
}
</style>

<script type="text/javascript" src="../../jquery/jquery.js"></script>
<script type="text/javascript">
		$(document).ready(function(){
			$("a").click(function(event){
				alert('Thanks for visiting!');
				$("a").removeClass("test");
				event.preventDefault();
				$(this).hide("slow");
			});
			$("a").addClass("test");
		})
		</script>
</head>
<a href="http://jquery.com/">jQuery</a>
</html>